package com.lsh.oms.core.enums;

/**
 *
 * @author huangdong
 * @date 16/8/1
 */
public enum ReturnOrderType {
	/**
	 *
	 */
	SCENE_RO(1, "现场返仓"),
	AFS_RO(2, "售后返仓");

	private final int index;
	private final String name;

	ReturnOrderType(int index, String name) {
		this.index = index;
		this.name = name;
	}

	public static String getName(int index) {
		for (ReturnOrderType c : ReturnOrderType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}

	public int getIndex() {
		return index;
	}

	public String getName() {
		return name;
	}
}
